#include "./polygondataiterators.h"
#include "./polygondata.h"

int ElementIterator::currentKey()
{
    return _iterator.key();
}

void ElementIterator::next()
{
    ++_iterator;
}

LoopIterator::LoopIterator()
{
}

void LoopIterator::begin()
{
    _data = PolygonData::instance();
    _iterator = _data->_loops.begin();
}

bool LoopIterator::isFinished()
{
    return _iterator == _data->_loops.end();
}


PicketIterator::PicketIterator()
{
}

void PicketIterator::begin()
{
    _data = PolygonData::instance();
    _iterator = _data->_pickets.begin();
}

bool PicketIterator::isFinished()
{
    return _iterator == _data->_pickets.end();
}

EmfIterator::EmfIterator()
{
}

void EmfIterator::begin()
{
    _data = PolygonData::instance();
    _iterator = _data->_emfs.begin();
}

bool EmfIterator::isFinished()
{
    return _iterator == _data->_emfs.end();
}
